using AutoMapper;
using AutoMapper.Internal.Mappers;
using System.Collections.Generic;
using ThridGroup.ERP.DTO;
using ThridGroup.ERP.DTO.HumanResourcesDto;
using ThridGroup.ERP.DTO.JobGradeManagementDTO;
using ThridGroup.ERP.DTO.MaterielDto;
using ThridGroup.ERP.DTO.ProductionSystem;
using ThridGroup.ERP.DTO.ProductionSystem.RepairOrderDto;
using ThridGroup.ERP.DTO.ProductionSystemDto.CustomerOrderDto;
using ThridGroup.ERP.DTO.ProductionSystemDto.ProductionMaterialReturnDto;
using ThridGroup.ERP.DTO.WarehouseManagement;
using ThridGroup.ERP.HumanResources;
using ThridGroup.ERP.ProductionSystem;
using ThridGroup.ERP.RBAC;
using ThridGroup.ERP.WarehouseManagement;

public class ERPWebAutoMapperProfile : Profile
{
    public ERPWebAutoMapperProfile()
    {
        //Define your object mappings here, for the Web project
        //���ӽ�ɫ
        CreateMap<Role, CreateRoleDto>().ReverseMap();
      
        //��ʾ��ɫ
        CreateMap<RolePermission, CreateRolePermissionDto>().ReverseMap();

        //��ʾ
        CreateMap<Role, RoleListDto>().ReverseMap();
        //ְλ�ȼ���Ϣ
        CreateMap<JobGradeManagement, JobGradeManagementModelDTO>().ReverseMap();

        CreateMap<User, UserDTO>().ReverseMap();
        CreateMap<Permission, PermissionlistDto>();
        CreateMap<TalentRegistrationDTO, TalentRegistration>().ReverseMap();

        //������Ϣ
        CreateMap<MaterielModel, CreateMaterielDto>().ReverseMap();

        //�ͻ�����
        //��ʾ�ͻ���Ϣ
        CreateMap<CustomerModel, QueryCustomerModelDto>().ReverseMap();
        //������ʾ�ͻ�����
        CreateMap<CustomerOrder, CustomerOrderlistDto>().ReverseMap();
        //�޸Ŀͻ�����
        CreateMap<CustomerOrder, UpdateCustomerOrderDto>().ReverseMap();



        //��ְ������ʾ��ְ����
        CreateMap<OnboardingReviewModel, OnboardingReviewDto>().ReverseMap();
        CreateMap<OnboardingReviewModel, OnboardingReviewListDto>().ReverseMap();

        //���������
        CreateMap<ItemSettingsDTO, ItemSettings>().ReverseMap();

        CreateMap<InterviewMenagement,InterviewDTO>().ReverseMap();
        //��������
        CreateMap<Workmanship, WorkmanshipDTO>().ReverseMap();
        //�豸���͹���
        CreateMap<EquipmentTypeModel, EquipmentTypeDTO>().ReverseMap();
        //��������
        CreateMap<PendingTasks, PendingTaskDTO>().ReverseMap();
        //销售出库
        CreateMap<SaleModel, SaleDTO>().ReverseMap();
        //外协发料
        CreateMap<OutsourcingMaterial, OutsourcingMaterialDTO>().ReverseMap();
        CreateMap<CustomerDTO, CustomerModel>().ReverseMap();
        CreateMap<ProdctionDTO, Production>().ReverseMap();
        //排版计划
        CreateMap<CrewSchedulingDTO, CrewScheduling>().ReverseMap();
        CreateMap<SailingsModelDTO, SailingsModel>().ReverseMap();
        //供应商退货
        CreateMap<SupplierReturnsDTO, SupplierReturnsModel>().ReverseMap();
        ///装箱
        CreateMap<QueryPackingDto, PackingModelS>().ReverseMap();
        CreateMap<QueryPackingDto, PackingModelS>().ReverseMap();
        //库存盘点
        CreateMap<InventoryCountsDTO, InventoryCounts>().ReverseMap();
       CreateMap<ShiftScheduleModel, ShiftScheduleDto>().ReverseMap();
        //退料
        CreateMap<ProductionMaterialReturn, CreateProductionMaterialReturnDto>().ReverseMap();
        CreateMap<ProductionMaterialReturn, UpdateProductionMaterialReturnDto>().ReverseMap();
        //装箱单详情
        CreateMap<PackingDetailsModelDto, PackingDetailsModelS>().ReverseMap();


       
        //维修单
        CreateMap<RepairOrderModelS, QueryRepairOrderDto>().ReverseMap();
        CreateMap<ShiftScheduleModel, ShiftScheduleDto>().ReverseMap();
        //库存废料
        CreateMap<ProductionWasteOrderDTO, ProductionWasteOrder>().ReverseMap();
       CreateMap<ShiftScheduleModel, ShiftScheduleDto>().ReverseMap();

        //生产派单
        CreateMap<OrderDispatch, OrderDispatchDtoListDto>().ReverseMap();
        CreateMap<OrderDispatch, CreateOrderDispatchDto>().ReverseMap();
        //物料入库
        CreateMap<MaterialReceiptLineDto, MaterialReceiptLineModelS>().ReverseMap();


        CreateMap<RepairOrderModelS, QueryRepairOrderDto>().ReverseMap();
        CreateMap<RepairOrderModelS, GetRepairOrderDto>().ReverseMap();
        
        //销售退货
        CreateMap<SalesReturnsModel, SalesReturnsListDto>().ReverseMap();
        CreateMap<SalesReturnsModel, CreSalesReturnsDto>().ReverseMap();
         
        //外协入库
        CreateMap<OutsourcingWarehousing, OutsourcingWarehousingListDto>().ReverseMap();
        CreateMap<OutsourcingWarehousing, CreateOutsourcingWarehousingDto>().ReverseMap();

    }
}
